﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" CodeBehind="users.aspx.cs" Inherits="GameAdmin.Pages.users" %>
<asp:Content ID="Content1" ContentPlaceHolderID="plcHolderContent" runat="server">
    <h2>Uživatelé</h2>

    <div id="toolbox">
        <asp:HyperLink NavigateUrl="~/userNew" Text="Přidat nového uživatele" runat="server" />
    </div>

    <asp:GridView ID="gw" CssClass="gw" AlternatingRowStyle-CssClass="alternate" HeaderStyle-CssClass="header" ClientIDMode="Predictable" AutoGenerateColumns="false" runat="server">
        <Columns>
            <asp:BoundField HeaderText="Login" DataField="login" />
            <asp:BoundField HeaderText="Jméno" DataField="jmeno" />
            <asp:BoundField HeaderText="Přijmení" DataField="prijmeni" />
            <asp:BoundField HeaderText="Email" DataField="email" />
            <asp:BoundField HeaderText="Admin" DataField="admin" />
            <asp:CommandField ShowEditButton="true" ShowSelectButton="true" SelectText="Score" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton runat="server" Text="Odstranit" CommandName="Delete" CommandArgument='<%# Eval("login") %>' OnClientClick="return confirm('Opravdu odstranit?');" />               
                </ItemTemplate>
            </asp:TemplateField> 
        </Columns>
    </asp:GridView>

    <asp:Panel id="pnlPagination" runat="server">
        <asp:Literal Text="Strana" runat="server" />:&nbsp;
    </asp:Panel>
</asp:Content>